package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-03-17
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_LEGAL_NEGOTIATEDSETTLEMEN")
@ApiModel(value="TblLegalNegotiatedsettlemen对象", description="")
public class TblLegalNegotiatedsettlemenMySql implements Serializable {
//协商过程
    private static final long serialVersionUID = 1L;

      @TableId("NEGOTIAID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private Integer negotiaid;

    @TableField("NEGOTIASTATUS")
    private BigDecimal negotiastatus;

    @TableField("COUNTERPART")//对方谈判人
    private String counterpart;

    @TableField("COUNTERPARTPHONE")//对方谈判人联系电话
    private String counterpartphone;

    @TableField("ISAGGREE")//是否协商一致：1是，2否
    private BigDecimal isaggree;

    @TableField("NEGETIARESULT")//谈判结果
    private String negetiaresult;

    @TableField("JUDICIALSETTLEMENT")//司法解决  1诉讼  2仲裁
    private BigDecimal judicialsettlement;

    @TableField("LINKORG")
    private BigDecimal linkorg;

    @TableField("DISPUINFO")
    private BigDecimal dispuinfo;

    @TableField("CREATESTAFF")
    private BigDecimal createstaff;

    @TableField("CREATETIME")
    @JSONField(format = "yyyy-MM-dd")
    private Date createtime;

    @TableField("SOLUTIONMODE")//解决方法：1私下条件，2司法调节
    private BigDecimal solutionmode;

    @TableField("COURTNAME")//法院名称
    private String courtname;
//
//    @Transient
//    private String disputeItem;

//    @Transient
//    private String disputeType;

//    @Transient
//    private String contractName;

    @Transient
    private List<TblAttachmentMySql> attList;

    @Transient
    private TblLegalDisputregistrationMySql dispuIn;

    @Transient
    private TblLegalDisputregistrationMySql dispu;
    ///////////映射TBL_LEGAL_DISPUTREGISTRATION与TBL_CYHW_UNIT////////////////
    @Transient
    private Integer disputeid;

    @Transient
    private String disputeno;

    @Transient
    private BigDecimal disputestatus;

    @Transient
    private String disputetype;

    @Transient
    private BigDecimal contractinfo;

    @Transient
    private String disputecours;

    @Transient
    private BigDecimal isuegent;

    @Transient
    private BigDecimal whethersued;

    @Transient
    private BigDecimal disputeundertaker;

    @Transient
    private LocalDateTime lastdealdate;

    @Transient
    private String solutionsuggestions;

    @Transient
    private String plaintiff;

    @Transient
    private String defendant;

    @Transient
    private String attorney;

    @Transient
    private String attorneyphont;

    @Transient
    private String disputeitem;//隶属纠纷

    @Transient
    private BigDecimal isattorney;

    @Transient
    private String coordination;

    @Transient
    private String casecause;

    @Transient
    private String ssproject;

    @Transient
    private String courtfirst;

    @Transient
    private BigDecimal litigationamount;

    @Transient
    private LocalDateTime occurrencetime;

    @Transient
    private String subsidiaries;


    @Transient
    private BigDecimal contractid;
    //TblCyhwUnit
    @ApiModelProperty(value = "隶属流程id 关联Tbl_flow flowid")
    @Transient
    private BigDecimal flowid;

    @ApiModelProperty(value = "单位名称")
    @Transient
    private String unitname;

    @ApiModelProperty(value = "合同名称")
    @Transient
    private String contractname;//纠纷合同

    @ApiModelProperty(value = "合同编号")
    @Transient
    private String contractno;

    @ApiModelProperty(value = "承办部门")
    @Transient
    private BigDecimal contractdept;

    @ApiModelProperty(value = "合同对方")
    @Transient
    private String contractlink;

    @ApiModelProperty(value = "合同金额")
    @Transient
    private BigDecimal contractmoney;

    @ApiModelProperty(value = "合同状态 1-审批中、2-需调整、3-已通过、4-已终止、5-已跟踪、6-已完成、7-执行中、		8-已归档、		9-已暂停、		10-已变更、		11-已终止、		12-纠纷中、		13-协商中、		14-诉讼中、		15-仲裁中、		16-已结案")
    @Transient
    private Integer contractstatus;

    @ApiModelProperty(value = "关联科室")
    @Transient
    private String linkdept;

    @ApiModelProperty(value = "隶属组织")
    @Transient
    private BigDecimal orgid;

    @ApiModelProperty(value = "创建人")
    @Transient
    private BigDecimal createuser;



    @ApiModelProperty(value = "合同简要说明")
    @Transient
    private String momoconcat;

    @ApiModelProperty(value = "关联的风险控制")
    @Transient
    private String riskcontrol;

    @ApiModelProperty(value = "合同内容")
    @Transient
    private String describe;

    @ApiModelProperty(value = "承办人")
    @Transient
    private BigDecimal contractstaff;

    @ApiModelProperty(value = "保密等级")
    @Transient
    private String scrilevel;

    @ApiModelProperty(value = "合同开始时间")
    @Transient
    @JSONField(format = "yyyy-MM-dd")
    private Date startdate;//创建日期

    @ApiModelProperty(value = "合同结束时间")
    @Transient
    @JSONField(format = "yyyy-MM-dd")
    private Date enddate;

    @ApiModelProperty(value = "合同项目")
    @Transient
    private String contractitem;

    @ApiModelProperty(value = "合同类型")
    @Transient
    private String contracttype;

    @ApiModelProperty(value = "合同期限类型")
    @Transient
    private String contractdatetype;

    @ApiModelProperty(value = "合同性质")
    @Transient
    private String contractxz;

    @ApiModelProperty(value = "合同相对方主键ID")
    @Transient
    private BigDecimal contractxdfxinfo;

    @ApiModelProperty(value = "合同类型 HTGL001 - 相对方、HTGL002-合同订立、HTGL003-合同用印、HTGL004-合同履行、HTGL005-变更、HTGL006-合同归档、HTGL007-合同范本")
    @Transient
    private String recordtype;

    @ApiModelProperty(value = "隶属合同 cyhwunitId")
    @Transient
    private BigDecimal recordparent;

    @ApiModelProperty(value = "合同金额汉字描述")
    @Transient
    private String hzsumowing;

    @ApiModelProperty(value = "计价方式")
    @Transient
    private String jijiatype;

    @ApiModelProperty(value = "币种")
    @Transient
    private String moneytype;

    @ApiModelProperty(value = "首付方向")
    @Transient
    private String dctype;

    @ApiModelProperty(value = "合同标的")
    @Transient
    private String contractbd;

    @ApiModelProperty(value = "是否重大合同")
    @Transient
    private String contractzd;

    @ApiModelProperty(value = "经办人")
    @Transient
    private BigDecimal jbstaff;

    @ApiModelProperty(value = "经办部门")
    @Transient
    private BigDecimal jbdept;

    @ApiModelProperty(value = "经办公司")
    @Transient
    private BigDecimal jbunit;

    @ApiModelProperty(value = "执行公司")
    @Transient
    private BigDecimal zxunit;

    @ApiModelProperty(value = "是否关联主合同")
    @Transient
    private String contractchildren;

    @ApiModelProperty(value = "是否有履行计划")
    @Transient
    private String contractplan;

    @ApiModelProperty(value = "合同立项信息")
    @Transient
    private String topicid;

    @ApiModelProperty(value = "合同立项名称")
    @Transient
    private String topicname;

    @ApiModelProperty(value = "历史状态")
    @Transient
    private BigDecimal hiscontractstatus;

    @ApiModelProperty(value = "变更类型")
    @Transient
    private String changetype;

    @ApiModelProperty(value = "变更时间")
    @Transient
    private LocalDateTime changedate;

    @ApiModelProperty(value = "变更内容")
    @Transient
    private String changedesc;

    @Transient
    private BigDecimal counterpartbank;


}
